package io.mft.datasource.db.accessor.util;

import io.mft.commons.db.SQL;
import io.mft.commons.function.response.kv.KVMap;

public class ProcedureFunctionSQLParameterTypeBuilder {

	public static String[] build(SQL sql,KVMap parameter) {
		String[] sparamTypes=new String[sql.getKeys().length];
		for (int i = 0; i < sparamTypes.length; i++) {
			String key=sql.getKeys()[i]+".dataType";
			sparamTypes[i]=parameter.getStr(key);
		}
		return sparamTypes;
	}
}
